using System;
using System.Collections.Generic;
using System.ByteBuffer;
using tools;

namespace thirteen
{
    /// <summary>
    /// generate by msg tool
    /// 请求进入房间
    /// </summary>
	public class ReqEnterRoomMsg : ReqMessage
	{
		//房间号
		public int roomId;

        public ReqEnterRoomMsg() { }

        public ReqEnterRoomMsg(int roomId)
        {
            this.roomId = roomId;
        }

        
		public void write(object obj)
		{
            ByteBuffer b = obj as ByteBuffer;
			b.PushInt(roomId);
			
		}

	    public void read(object obj)
		{
            MyConverter b = obj as MyConverter;
			roomId = b.toInt32();
			
		}

		public int Id
		{
            get { return 621102; }
		}

        public String Desc
        {
            get { return "请求进入房间"; }
        }
	}
}